# @Time: 2025/3/21 19:45
# @Author: chenhui

class TestPractice():
    def mergeAlternately(self,world1:str,world2:str) ->str:
        m,n=len(world1),len(world2)
        i=j=0
        ans =list()
        while i<m and j<n:
            if i<m:
                ans.append(world1[i])
                i+=1
            if j<n:
                ans.append(world2[j])
                j+=1
        return "".join(ans)

    def mergeAlternately1(self, list1: int, list2: int):
        m=len(list1)
        i =  0
        ans = list()
        while i < m :
            sum=list1[i]+list2[i]
            ans.append(sum)
            i+=1
        return ans


if __name__ == '__main__':
    result=TestPractice().mergeAlternately1('1,2,3','3,5,6')
    print(result)
